import Vue from 'vue'
import App from './App.vue'
import Vant from 'vant';    //引入vant
import 'vant/lib/index.css';
import router from './router/router'; //引入router
import axios from 'axios'
import AMapLoader from '@amap/amap-jsapi-loader';
import i18n from './i18n'; // 引入 i18n 配置
import {Search} from 'vant';

Vue.use(Vant);
Vue.config.productionTip = false
Vue.config.$axios = axios
Vue.config.$AMapLoader = AMapLoader;
Vue.config.$Search = Search




Vue.config.$router = router //全局router

new Vue({
    i18n, // 注入 i18n
    router,
    render: h => h(App),
}).$mount('#app')
